package com.common.autocode.mysql;

import java.util.Iterator;
import java.util.Set;

import org.apache.commons.collections.keyvalue.MultiKey;
import org.apache.commons.collections.map.MultiKeyMap;

public class Test {

	public static void main(String[] args) throws Exception {
        String table = "px_purchase_request";
       String packageName = "net.costsoft.web.px.purchase";
       String uri = "jdbc:mysql://localhost:3306/eccs?useUnicode=true&characterEncoding=utf-8";
       String username = "root",pwd = "root";
       
		CommonParser.columnToClass(uri,username,pwd,table,packageName);
       
       
       MultiKeyMap childInfos = new MultiKeyMap();
       childInfos.put("Purchaserequestmaterial", "px_purchase_request_material","mapper.xml");
       Set keys = childInfos.keySet();
       Iterator it = keys.iterator();
       while(it.hasNext()){
//    	   System.out.println(it.next());
    	   MultiKey mk = (MultiKey) it.next();
    	   Object[] obj = mk.getKeys();
    	   System.out.println(obj[0]+" : "+obj[1]);
       }
	}

}
